<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="utf-8"/>
    <link rel="apple-touch-icon" sizes="76x76" th:href="@{/assets/img/apple-icon.png}">
    <link rel="icon" type="image/png" sizes="96x96" th:href="@{/assets/img/favicon.png}">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>

    <title>Paper Dashboard by Creative Tim</title>

    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport'/>
    <meta name="viewport" content="width=device-width"/>


    <!-- Bootstrap core CSS     -->
    <link th:href="@{/assets/css/bootstrap.min.css}" rel="stylesheet"/>

    <!-- Animation library for notifications   -->
    <link th:href="@{/assets/css/animate.min.css}" rel="stylesheet"/>

    <!--  Paper Dashboard core CSS    -->
    <link th:href="@{/assets/css/paper-dashboard.css}" rel="stylesheet"/>

    <!--  CSS for Demo Purpose, don't include it in your project     -->
    <link th:href="@{/assets/css/demo.css}" rel="stylesheet"/>

    <!--  Fonts and icons     -->
    <!--<link th:href="@{http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css}" rel="stylesheet">-->
    <!--<link th:href="@{https://fonts.googleapis.com/css?family=Muli:400,300}" rel='stylesheet' type='text/css'>-->
    <link th:href="@{/assets/css/themify-icons.css}" rel="stylesheet">

</head>
<body>

<div class="wrapper">
    <div class="sidebar" data-background-color="white" data-active-color="danger">

        <!--
            Tip 1: you can change the color of the sidebar's background using: data-background-color="white | black"
            Tip 2: you can change the color of the active button using the data-active-color="primary | info | success | warning | danger"
        -->

        <div th:replace="~{index::sidebar-wrapper}"></div>
    </div>

    <div class="main-panel">
        <nav class="navbar navbar-default">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle">
                        <span class="icon-bar bar1"></span>
                        <span class="icon-bar bar2"></span>
                        <span class="icon-bar bar3"></span>
                    </button>
                    <a class="navbar-brand" href="#">招募信息</a>
                </div>
                <div class="collapse navbar-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="ti-bell"></i>
                                <p class="notification">5</p>
                                <p>收件箱</p>
                                <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="#">新消息 1</a></li>
                                <li><a href="#">新消息 2</a></li>
                                <li><a href="#">新消息 3</a></li>
                                <li><a href="#">新消息 4</a></li>
                                <li><a href="#">更多</a></li>
                            </ul>
                        </li>
                        <li th:replace="~{index::exit}"></li>
                    </ul>
                </div>
            </div>
        </nav>


        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <!--表格导航栏-->

                            <nav class="navbar navbar-inverse" role="navigation">
                                <div class="container-fluid">
                                    <div class="navbar-header">
                                        <a class="navbar-brand" >招募信息</a>
                                    </div>
                                    <div>
                                        <ul class="nav navbar-nav">
                                            <li class="active flag_0" ><a href="#">招募中</a></li>
                                            <li class="flag_1"><a href="#">已过期</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </nav>
                            <!--表格导航栏-->
                            <div class="content table-responsive table-full-width">
                                <!--<table class="table table-striped">-->
                                    <!--<thead>-->
                                    <!--<th>线路信息</th>-->
                                    <!--<th>招募进度</th>-->
                                    <!--<th>操作</th>-->

                                    <!--</thead>-->
                                    <!--<tbody>-->
                                    <!--<tr>-->
                                        <!--<td>线路信息</td>-->
                                        <!--<td>-->
                                            <!--<div class="progress">-->
                                                <!--<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 40%;">-->
                                                    <!--<span class="sr-only">40% 完成</span>-->
                                                <!--</div>-->
                                            <!--</div>-->

                                        <!--</td>-->

                                        <!--<td>-->
                                            <!--<a class="btn btn-default" href="#">开通</a>-->
                                        <!--</td>-->

                                    <!--</tr>-->
                                    <!--</tbody>-->

                                <!--</table>-->
                                <!--<div align="center">-->

                                    <!--<ul class="pagination">-->
                                        <!--<li><a href="#">首页</a></li>-->
                                        <!--<li><a href="#">上一页</a></li>-->
                                        <!--<li><a href="#">下一页</a></li>-->
                                        <!--<li><a href="#">尾页</a></li>-->
                                        <!--<li><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;</a></li>-->
                                        <!--<li><a href="#">第N页/共N页</a></li>-->
                                    <!--</ul>-->

                                <!--</div>-->

                            </div>
                        </div>
                    </div>


                    <footer th:replace="~{index::footer}"></footer>


                </div>
            </div>
        </div>
    </div>
</div>

</body>

<!--   Core JS Files   -->
<script th:src="@{/assets/js/jquery-1.10.2.js}" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        //获取详细信息
        $('div.content.table-responsive.table-full-width').empty();
        var html="<table class='table table-striped'>" +
            "<thead>" +
            "<th>团编号</th>" +
            "<th>人数标准</th>" +
            "<th>招募进度</th>" +
            "<th>票价</th>" +
            "<th>线路信息</th>" +
            "<th>操作</th>" +
            "</thead>" +
            "<tbody>" +
            "<td>tuan6555545</td>" +
            "<td>10</td>" +
            "<td>" +
            "<div class='progress'>" +
            "<div class='progress-bar' role='progressbar' aria-valuenow='60' aria-valuemin='0' aria-valuemax='100' style='width: 80%;'>" +
            "<span class='sr-only'>40% 完成</span>" +
            "</div>" +
            "</div>" +
            "</td>" +
            "<td>3</td>" +
            "<td><a href='#'>线路详情</a></td>" +
            "<td><a class='btn btn-default' href='#'>开通</a></td>" +
            "</tbody>" +
            "</table>" +
            "<div align=\"center\">\n" +
            "\n" +
            " <ul class=\"pagination\">\n" +
            "<li><a href=\"#\">首页</a></li>\n" +
            "<li><a href=\"#\">上一页</a></li>\n" +
            "<li><a href=\"#\">下一页</a></li>\n" +
            "<li><a href=\"#\">尾页</a></li>\n" +
            "<li><a href=\"#\">&nbsp;&nbsp;&nbsp;&nbsp;</a></li>\n" +
            "<li><a href=\"#\">第N页/共N页</a></li>\n" +
            "</ul>";
        $('div.content.table-responsive.table-full-width').prepend(html);



        //点击已过期  flag_1;
        $('li.flag_1').click(function () {
            $('div.content.table-responsive.table-full-width').empty();
            $('li.active.flag_0').attr("class","flag_0");
            $('li.flag_1').attr("class","active flag_1");

            var html="<table class='table table-striped'>" +
                "<thead>" +
                "<th>团编号</th>" +
                "<th>人数标准</th>" +
                "<th>招募进度</th>" +
                "<th>单价</th>" +
                "<th>线路信息</th>" +
                "</thead>" +
                "<tbody>" +
                "<td>tuan25635665</td>" +
                "<td>15</td>" +
                "<td>" +
                "<div class='progress'>" +
                "<div class='progress-bar' role='progressbar' aria-valuenow='60' aria-valuemin='0' aria-valuemax='100' style='width: 40%;'>" +
                "<span class='sr-only'>40% 完成</span>" +
                "</div>" +
                "</div>" +
                "</td>" +
                "<td>3</td>" +
                "<td><a href='#'>线路详情</a></td>" +
                "</tbody>" +
                "</table>" +
                "<div align=\"center\">\n" +
                "\n" +
                " <ul class=\"pagination\">\n" +
                "<li><a href=\"#\">首页</a></li>\n" +
                "<li><a href=\"#\">上一页</a></li>\n" +
                "<li><a href=\"#\">下一页</a></li>\n" +
                "<li><a href=\"#\">尾页</a></li>\n" +
                "<li><a href=\"#\">&nbsp;&nbsp;&nbsp;&nbsp;</a></li>\n" +
                "<li><a href=\"#\">第N页/共N页</a></li>\n" +
                "</ul>";
            $('div.content.table-responsive.table-full-width').prepend(html);

        });


        //点击招募中 flag_0;
        $('li.flag_0').click(function () {
            $('div.content.table-responsive.table-full-width').empty();
            $('li.active.flag_1').attr("class","flag_1");
            $('li.flag_0').attr("class","active flag_0");

            var html="<table class='table table-striped'>" +
                "<thead>" +
                "<th>团编号</th>" +
                "<th>人数标准</th>" +
                "<th>招募进度</th>" +
                "<th>票价</th>" +
                "<th>线路信息</th>" +
                "<th>操作</th>" +
                "</thead>" +
                "<tbody>" +
                "<td>tuan6555545</td>" +
                "<td>10</td>" +
                "<td>" +
                "<div class='progress'>" +
                "<div class='progress-bar' role='progressbar' aria-valuenow='60' aria-valuemin='0' aria-valuemax='100' style='width: 80%;'>" +
                "<span class='sr-only'>40% 完成</span>" +
                "</div>" +
                "</div>" +
                "</td>" +
                "<td>3</td>" +
                "<td><a href='#'>线路详情</a></td>" +
                "<td><a class='btn btn-default' href='#'>开通</a></td>" +
                "</tbody>" +
                "</table>" +
                "<div align=\"center\">\n" +
                "\n" +
                " <ul class=\"pagination\">\n" +
                "<li><a href=\"#\">首页</a></li>\n" +
                "<li><a href=\"#\">上一页</a></li>\n" +
                "<li><a href=\"#\">下一页</a></li>\n" +
                "<li><a href=\"#\">尾页</a></li>\n" +
                "<li><a href=\"#\">&nbsp;&nbsp;&nbsp;&nbsp;</a></li>\n" +
                "<li><a href=\"#\">第N页/共N页</a></li>\n" +
                "</ul>";
            $('div.content.table-responsive.table-full-width').prepend(html);

        });

    });

</script>

<script th:src="@{/assets/js/bootstrap.min.js}" type="text/javascript"></script>

<!--  Checkbox, Radio & Switch Plugins -->
<script th:src="@{/assets/js/bootstrap-checkbox-radio.js}"></script>

<!--  Charts Plugin -->
<script th:src="@{/assets/js/chartist.min.js}"></script>

<!--  Notifications Plugin    -->
<script th:src="@{/assets/js/bootstrap-notify.js}"></script>




</html>
